import Home from '@/auth/pages/Home'
import ParentView from '@/components/Parent-view'
export default {
  path: '/information',
  name: 'information',
  meta: {
    title: '信息查询'
  },
  component: Home,
  children: [
    {
      path: 'search-project',
      name: 'search-project',
      meta: {
        title: '项目查询'
      },
      component: () => import('@/views/information/ProjectInquiry/index.vue')
    },
    {//项目查询----编辑/
      path: 'search-project/:type/:id/:name',
      name: 'detail-project',
      meta: {
        title: route => `${route.params.name}`,
      },
      component: () => import('@/views/information/ProjectInquiry/DetailProjectInquiry.vue')
    },
    {
      path: 'person',
      name: 'person',
      meta: {
        title: '人员查询'
      },
      component: ParentView,
      children: [
        {
          path: 'search-enterprise-person',
          name: 'search-enterprise-person',
          meta: {
            title: '公司人员'
          },
          component: () => import('@/views/information/Person/CompanyStaffInquiry.vue')
        },
        {
          path: 'search-project-person',
          name: 'search-project-person',
          meta: {
            title: '项目人员'
          },
          component: () => import('@/views/information/Person/ProjectPersonnelInquiry.vue')
        },
        {
          path: 'person-detail/:type/:id/:name',
          name: 'person-detail',
          meta: {
            title: route => `${route.params.name}`,
          },
          component: () => import('@/views/information/Person/PersonDetail.vue')
        },
        {
          path: 'enterprise-person-detail/:type/:id/:name',
          name: 'enterprise-person-detail',
          meta: {
            title: route => `${route.params.name}`,
          },
          component: () => import('@/views/information/Person/EnterprisePersonDetail.vue')
        }
      ]
    }
  ]
}
